package com.tjetc.dao;

import com.tjetc.domian.Apartment;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

public interface ApartmentMapper {
    int deleteByPrimaryKey(Integer apartmentid);

    int insert(Apartment record);

    int insertSelective(Apartment record);

    Apartment selectByPrimaryKey(Integer apartmentid);

    int updateByPrimaryKeySelective(Apartment record);

    int updateByPrimaryKey(Apartment record);

    @Select("select * from apartment")
    List<Apartment> select();

    @Select("select * from apartment where Area=#{area}")
    List<Apartment> listByArea(BigDecimal area);
}